<html>
<head><meta charset="utf-8"><title>less annoying `raw string` assist · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html">less annoying `raw string` assist</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215079660"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215079660" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215079660">(Oct 30 2020 at 10:59)</a>:</h4>
<p>Only show <code>raw string</code> assist when there is some benefit. For example, it should show for <code>"Hello \" world"</code> but not for <code>"Hello world"</code></p>



<a name="215084259"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215084259" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215084259">(Oct 30 2020 at 11:53)</a>:</h4>
<p>tbh, I think it is a feature</p>



<a name="215084321"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215084321" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215084321">(Oct 30 2020 at 11:54)</a>:</h4>
<p>The way I type raw strings is pressing <code>"</code>, then <code>alt+Enter</code>, then <code>Enter</code>. That way, I don't need to type <code>r##</code> which is the most annoying part</p>



<a name="215084363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215084363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215084363">(Oct 30 2020 at 11:54)</a>:</h4>
<p>Why is raw string assist feels annoying to you? Does it conflict with some higher priority assist?</p>



<a name="215084412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215084412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215084412">(Oct 30 2020 at 11:55)</a>:</h4>
<p>yellow bulb in vscode shows at every single string</p>



<a name="215084537"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215084537" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215084537">(Oct 30 2020 at 11:56)</a>:</h4>
<p>We can special case <code>""</code> though</p>



<a name="215085064"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215085064" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215085064">(Oct 30 2020 at 12:03)</a>:</h4>
<p>In the limit, the lightbulb will be available <em>everywhere</em>, it's just we have too few assist right now :-)</p>
<p>You can disable the bulb visual via     <code>"editor.lightbulb.enabled": false</code></p>



<a name="215085203"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215085203" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215085203">(Oct 30 2020 at 12:05)</a>:</h4>
<p>thanks<br>
also, is there any way to disable to some assists?</p>



<a name="215085318"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215085318" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215085318">(Oct 30 2020 at 12:06)</a>:</h4>
<p>No, we only have opt-out of diagnostics I think</p>



<a name="215085328"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/less%20annoying%20%60raw%20string%60%20assist/near/215085328" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/less.20annoying.20.60raw.20string.60.20assist.html#215085328">(Oct 30 2020 at 12:06)</a>:</h4>
<p>Though we should add one for asssits as well.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>